﻿using Framework.Ddd.Application.Contracts.Dtos;
using my.abp.Domain.Shared.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace my.abp.Application.Contracts.Dtos.Org
{
	public class OrgInput : BaseIdInput
	{
		/// <summary>
		/// 名称
		/// </summary>
		public string? Name { get; set; }

		/// <summary>
		/// 编码
		/// </summary>
		public string? Code { get; set; }
	}

	public class AddOrgInput : SysOrg
	{
		/// <summary>
		/// 名称
		/// </summary>
		[Required(ErrorMessage = "机构名称不能为空")]
		public override string Name { get; set; }
	}

	public class UpdateOrgInput : AddOrgInput
	{
	}

	public class DeleteOrgInput : BaseIdInput
	{
	}
}
